<template>
  <div class="d-flex tologin justify-content-center">
    <slot></slot>
    <button class="btn bg-warning" @click="toLogin">立即登录</button>
  </div>
</template>

<script>
export default {
  methods: {
    toLogin() {
      this.$router.push("/login/l1/gracg");
    },
  },
};
</script>

<style lang="less" scoped>
.tologin {
  width: 100%;
  margin: 60px 0 80px 0;
  span {
    font-size: 18px;
    padding-top: 5px;
  }
  button {
    padding: 5px 10px;
    margin-left: 10px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: lighter;
    vertical-align: middle;
  }
}
</style>